<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="Artist.*,www.utility.*"%>
<%String root = (String)request.getAttribute("root"); %>
<SCRIPT src = "<%=root%>/js/Artist.js"></SCRIPT>
<%
String word = (String)request.getAttribute("word");
int nowPage = ((Integer)request.getAttribute("nowPage")).intValue();
ArtistDTO dto = (ArtistDTO)request.getAttribute("read");
String image = Utility.checkNull(dto.getArtist_imagefile());
%>

<table>
    <tr>
        <td>아티스트 번호</td>
        <td><%=dto.getArtist_no() %></td>
    </tr>
    <tr>
        <td>아티스트 이미지</td>
        <td>&nbsp;
        <%if(image.length()>0){
              if(Utility.checkImageFile(image)){ %>
                  <img src='<%=root%>/artist/images/storage/<%=image %>' width="150px">
            <%}else{
                  out.print("이미지가 없습니다.");
              }
          }%>
         </td>
    </tr>
    <tr>
        <td>아티스트 이름</td>
        <td><%=dto.getArtist_name() %></td>
    </tr>
    <tr>
        <td>아티스트 타입</td>
        <td><%=dto.getArtist_type() %></td>
    </tr>
    <tr>
        <td>아티스트 국적</td>
        <td><%=dto.getArtist_country() %></td>
    </tr>
    <tr>
        <td colspan="2">
            <a href="javascript:history.back()"><input type="button" value="목록"/></a>
            <a href="javascript:updateEvn(document.frmUpdate)"><input type="button" value="수정"/></a>
            <a href="javascript:history.back()"><input type="button" value="삭제"/></a>
        </td>
    </tr>
</table>
<form name="frmUpdate" method="post" action="">
    <input type="hidden" name="art_no" value="<%=dto.getArtist_no() %>">
    <input type="hidden" name="nowPage" value="<%=nowPage%>">
    <input type="hidden" name="word" value="<%=word%>">
</form>